import request from '@/utils/request'


// 初始化查询
export function init() {
  return request({
    url: '/reportworld/kettle/init',
    method: 'put'
  })
}


// 查询采集任务列表
export function listTask(query) {
    return request({
        url: '/reportworld/kettle/list',
        method: 'get',
        params: query
    })
}

// 导出SQL文件
export function handleDownSql(sql) {
  return request({
    url: '/reportworld/kettle/handleDownSql',
    data: {
      sql: sql
    },
    method: 'post'
  })
}
